package org.ehe.finance.voucher.domain.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 凭证状态变更Bo
 * @author :zhangnn
 * @className :VoucherStatusChangeBo
 * @description: TODO
 * @date 2025-08-25 09:33:36
 */
@Data
public class VoucherStatusChangeBo {
    @Schema(description = "凭证ID")
    @NotNull(message = "凭证ID不能为空")
    private Long id;

    @Schema(description = "目标状态:2审核,3记账,4结账")
    @NotNull(message = "目标状态不能为空")
    @Min(value = 2, message = "目标状态值不正确")
    @Max(value = 4, message = "目标状态值不正确")
    private Integer targetStatus;

    @Schema(description = "审核意见")
    @Size(max = 500, message = "审核意见长度不能超过500个字符")
    private String reviewComment;
}
